package collections.list;

import org.apache.commons.lang3.StringUtils;

import java.util.Date;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

/**
 * @Author: ycy
 * @CreateDate: 2018/8/30 13:06
 */
public class LinkedListDemo {



  public static void main(String[] args) {

    System.out.println(new Date(1606726512799L));


    System.out.println(new Date(1606747445902L));

    LinkedList<String> list = new LinkedList<String>();

    list.add("b");
    list.add("a");

    list.removeLast();

    String poll = list.poll();

    for(String a:list){
      System.out.println(a);
    }

    Iterator<String> iterator = list.iterator();
    while (iterator.hasNext()){
      if(StringUtils.contains("aa",iterator.next())){
        iterator.remove();
      }
    }

    System.out.println(list);

    System.out.println(Double.MIN_VALUE);

    System.out.println( (double) Double.MIN_EXPONENT);

    List<String> strings = list.subList(0, 1);

  }



}
